<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

		<script>
			$(document).ready(function(){
				$("div.sidebar>ul>li>ul>li>a").click(function(){
				//	alert($(this).attr("href"));
					$("div.sidebar .submenu>li").removeClass("active");
					$("div.sidebar>ul>li").removeClass("active");
					$("div.sidebar>ul>li").removeClass("open");
					$(this).parent().attr("class","active"); // li
					$(this).parent().parent().parent().attr("class","active open"); // a.parent -> li.parent -> ul.parent -> li
				});
			});
		</script>
	
				<div class="sidebar" id="sidebar">
					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
					</script>

					<div class="sidebar-shortcuts" id="sidebar-shortcuts">
						<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
							<button class="btn btn-success">
								<i class="icon-signal"></i>
							</button>

							<button class="btn btn-info">
								<i class="icon-pencil"></i>
							</button>

							<button class="btn btn-warning">
								<i class="icon-group"></i>
							</button>

							<button class="btn btn-danger">
								<i class="icon-cogs"></i>
							</button>
						</div>

						<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
							<span class="btn btn-success"></span>

							<span class="btn btn-info"></span>

							<span class="btn btn-warning"></span>

							<span class="btn btn-danger"></span>
						</div>
					</div><!-- #sidebar-shortcuts -->
					
					<ul class="nav nav-list">
						<li class="active">
							<a href="modules/ace/frame/main.jsp">
								<i class="icon-dashboard"></i>
								<span class="menu-text"> 控制台 </span>
							</a>
						</li>

		<s:iterator value="#session.rulerInfolist" id="lv1">
	       	 <s:if test="#lv1.manager==0 && #lv1.echo==1" >
	       	 			<li class="firstmenu">
							<a href="javascript:void(0);" class="dropdown-toggle">
								<i class="${icon }"></i>
								<span class="menu-text"> ${rulerName } </span>
								<b class="arrow icon-angle-down"></b>
							</a>
			         		<ul class="submenu">
						         <s:iterator value="#session.rulerInfolist" id="lv2">
							         <s:if test="#lv2.manager==#lv1.rulerid  && #lv2.echo==1">
										<li>
											<a href="<s:property value="url"/>" target="<s:property value="target"/>">
												<i class="icon-double-angle-right"></i>
												<s:property  value="rulerName" />
											</a>
										</li>
								     </s:if>
							     </s:iterator>
							</ul>
						</li>
			  </s:if>
		   	</s:iterator> 


					</ul><!-- /.nav-list -->

					<div class="sidebar-collapse" id="sidebar-collapse">
						<i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
					</div>

					<script type="text/javascript">
						try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
					</script>
				</div>
	
